package com.thoughtworks;

import java.util.Date;

public class Car {
	private String number; // 车牌号
	private Date purchaseDate; // 购买日期
	private String brandName; // 品牌名称
	private int currentKilometers; // 目前运行公里数
	private String isRepair; // 是否大修
	private Boolean isRepeat = false; // 是否重复
	private int repeatCount = 1; // 重复数

	public String getNumber() {
		return number;
	}

	public Car() {

	}

	public Car(String number, Date purchaseDate, String brandName, int currentKilometers, String isRepair) {
		super();
		this.number = number;
		this.purchaseDate = purchaseDate;
		this.brandName = brandName;
		this.currentKilometers = currentKilometers;
		this.isRepair = isRepair;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public Date getPurchaseDate() {
		return purchaseDate;
	}

	public void setPurchaseDate(Date purchaseDate) {
		this.purchaseDate = purchaseDate;
	}

	public String getBrandName() {
		return brandName;
	}

	public void setBrandName(String brandName) {
		this.brandName = brandName;
	}

	public int getCurrentKilometers() {
		return currentKilometers;
	}

	public void setCurrentKilometers(int currentKilometers) {
		this.currentKilometers = currentKilometers;
	}

	public String getIsRepair() {
		return isRepair;
	}

	public void setIsRepair(String isRepair) {
		this.isRepair = isRepair;
	}

	public Boolean getIsRepeat() {
		return isRepeat;
	}

	public void setIsRepeat(Boolean isRepeat) {
		this.isRepeat = isRepeat;
	}

	public int getRepeatCount() {
		return repeatCount;
	}

	public void setRepeatCount(int repeatCount) {
		this.repeatCount = repeatCount;
	}

	@Override
	public String toString() {
		return "Car [number=" + number + ", purchaseDate=" + purchaseDate + ", brandName=" + brandName
				+ ", currentKilometers=" + currentKilometers + ", isRepair=" + isRepair + "]";
	}

}